$(function() {
  $.ajax({
    type: "get",
    url: "http://" + ip + ":9090/api/getcoupon",
    dataType: "json",
    success: function(info) {
      $(".coupons ul").html(template("couponTpl", info));
    }
  });
});